/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.cs.client.LmcMessage;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcAddMsgRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private LmcMessage mMsg;
/*    */   
/* 36 */   public void setMsg(LmcMessage m) { this.mMsg = m; }
/*    */   
/* 38 */   public LmcMessage getMsg() { return this.mMsg; }
/*    */   
/*    */   protected Element getRequestXML() {
/* 41 */     Element request = DocumentHelper.createElement(MailConstants.ADD_MSG_REQUEST);
/* 42 */     addMsg(request, this.mMsg, null, null, null);
/* 43 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 49 */     Element m = DomUtil.get(responseXML, "m");
/* 50 */     LmcAddMsgResponse response = new LmcAddMsgResponse();
/* 51 */     response.setID(DomUtil.getAttr(m, "id"));
/* 52 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcAddMsgRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */